﻿@using User.Web.Common.HtmlHelper
@model User.Web.Models.Admin.MemberDetailsModel

@{
    ViewBag.Title = PageTitles.MemberDetails;
}

<div class="row">
    <div class="col-lg-12">
        @Html.ShowCustomMessage()
    </div>
</div>

@using (Html.BeginForm("MemberEdit", "Account", FormMethod.Post, new { @class = "form-horizontal" }))
{
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">

                <div class="panel-heading">
                    <h4>@ViewBag.Title</h4>
                </div>

                <div class="panel-body">
                    <div class="form-group">
                        @Html.LabelFor(model => model.Username, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            <p class="form-control-static">@Model.Username</p>
                        </div>
                    </div>
             
                    <div class="form-group">
                        @Html.LabelFor(model => model.Title, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            <p class="form-control-static">@Model.Title</p>
                        </div>
                    </div>
                           
                    <div class="form-group">
                        @Html.LabelFor(model => model.Firstname, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            <p class="form-control-static">@Model.Firstname</p>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        @Html.LabelFor(model => model.Lastname, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            <p class="form-control-static">@Model.Lastname</p>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        @Html.LabelFor(model => model.Mobilenumber, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            <p class="form-control-static">@Model.Mobilenumber</p>
                        </div>
                    </div>

                    <div class="form-group">
                        @Html.LabelFor(model => model.LastLoginDate, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            <p class="form-control-static">@Model.LastLoginDate</p>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        @Html.LabelFor(model => model.LoginTries, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            <p class="form-control-static">@Model.LoginTries</p>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        @Html.LabelFor(model => model.ProviderName, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            <p class="form-control-static">@Model.ProviderName</p>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        @Html.LabelFor(model => model.IsActiveAccount, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            <p class="form-control-static">@Html.DisplayForYesNo(Model.IsActiveAccount)</p>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        @Html.LabelFor(model => model.AssignedRights, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            <p class="form-control-static">@Model.AssignedRights</p>
                        </div>
                    </div>
                </div>
                <div class="panel-footer">
                   &nbsp;
                </div>
            </div>
        </div>
    </div>
}

<hr />

<div class="row">
    <div class="col-lg-12">
        @Html.ActionLink(ControlNames.Home, "Index", "Home", null, new { @class = "btn btn-default" })

        @Html.ActionLink(ControlNames.UserList, "MemberList", "Admin", null, new { @class = "btn btn-default" })
        
        @Html.ActionLink(ControlNames.Edit, "MemberEditAdmin", "Admin", new { id = Model.Id }, new { @class = "btn btn-default" })
    
            @Html.ActionLink(ControlNames.UserRights, "MemberRights", "Admin", new { id = Model.Id }, new { @class = "btn btn-default" })
    </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
